import java.awt.Color;


public class roomRect{
	// room rect info
	private int roomNum;
	/**
	 * roomType=0 <= king room
	 * roomType=1 <= large room
	 * roomType=2 <= medium room
	 * roomType=3 <= small room
	 * roomType=4 <= rest room
	 */
	private int roomType;
	/**
	 * red <= occupied
	 * blue <= in the cleaning
	 * yellow <= need to clean
	 * gray <= rest room
	 * white <= empty
	 */
	private Color state;
	private int roomState;
	private roomInfo info;
	// room location and size
	private int x;
	private int y;
	private int width;
	private int height;
	
	public roomRect(int initRoomNum, int initRoomType, int initX, int initY){
		roomNum = initRoomNum;
		roomType = initRoomType;
		x = initX;
		y = initY;
		if (roomType == 4)
			state = Color.GRAY;
		else state = Color.WHITE;
		if (roomType == 0){
			width = 400;
			height = 250;
		}
		else if (roomType == 1){
			width = 200;
			height = 200;
		}
		else if (roomType == 2){
			width = 200;
			height = 125;
		}
		else if (roomType == 3){
			width = 100;
			height = 75;
		}
		else if (roomType == 4){
			width = 80;
			height = 160;
		}
	}
	
	public int getRoomNum() {return roomNum;}
	public int getX() {return x;}
	public int getY() {return y;}
	public int getWidth() {return width;}
	public int getHeight() {return height;}
	public roomInfo getRoomInfo() {return info;}
	public int getRoomType() {return roomType;}
	
	// get room name
	public String getRoomName() {
		String s = "";
		switch (roomType){
		case 0: s += "King Room "; break;
		case 1: s += "Large Room "; break;
		case 2: s += "Medium Room "; break;
		case 3: s += "Small Room "; break;
		case 4: s += "W.C "; break;
		default:
		}
		if (roomType != 4)
			s += roomNum;
		return s;
	}
	
	public void setRoomInfo(roomInfo initInfo) {info = initInfo;}
	
}
